<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>Title</title>
</head>
<body>
<div>
    <form action="/ljx/getBy8" style="text-align: center;margin-top:55px; ">
        <div class="form-group">
            <label >请选择家系</label>
            <select class="form-control" id="sell"  >
                <option value="0">--   l1家系   --</option>
                <option value="1">--   YF家系   --</option>
                <!--                <option>3</option>-->
            </select>
        </div>
        <br>
        <!--        <div class="form-group">-->
        <!--            <label >请选择8代翅号公/母</label>-->
        <!--            <label >l1家系的不用选择此项</label>-->
        <!--            <select class="form-control" id="cc"  >-->
        <!--                <option value="0">翅号公</option>-->
        <!--                <option value="1">翅号母</option>-->
        <!--                &lt;!&ndash;                <option>3</option>&ndash;&gt;-->
        <!--            </select>-->
        <!--        </div>-->

        <span>请输入要查询的翅号</span>
        <input type="text" name="ch8" id="ch8">

        <button type="button" th:onclick="toMain()">查询</button>

    </form>
</div>
<!--<div style="text-align: center">-->
<!--    <a href="/yf/tomain">点击此处，去查询YF家系</a>-->
<!--</div>-->



</body>
<!--<script src="./js/jQuery-3.4.1.js"></script>-->
<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<script>
    function toMain(){
        let  sell=$("#sell").val()
        let  cc=$("#cc").val()
        let  ch8=$("#ch8").val()
        // alert(ch8)
        let url1 = '/ljx/getBy8?ch8='+ch8;
        let url2m = '/yf/getBy8?ch8m='+ch8;
        let url2f = '/yf/getBy8?ch8f='+ch8;
        let yfurl = '/yf/getBy8?ch8='+ch8;
        if (sell == 0){
            window.location.href=url1;

        }else if(sell == 1){

            window.location.href=yfurl;

        }

    };


</script>
</html>